package com.shine.app.widget.rangebar;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;

class ConnectingLine {

	private final Paint paint;
	private final float y;

	public ConnectingLine(Context context, float y, float connectingLineWeight,
			int connectingLineColor) {
		this.paint = new Paint();
		paint.setColor(connectingLineColor);
		paint.setAntiAlias(true);
		this.y = y;
	}

	void draw(Canvas canvas, Thumb leftThumb, Thumb rightThumb) {
		canvas.drawLine(leftThumb.getX(), y, rightThumb.getX(), y, paint);
	}
}
